<?php

namespace App\Http\Requests\Api;

class CoordinateRequest extends ApiRequest
{
    public function rules()
    {
        return [
            'latitude' => 'bail|required|numeric',
            'longitude' => 'bail|required|numeric'
        ];
    }

    public function attributes()
    {
        return [
            'latitude' => '纬度',
            'longitude' => '经度'
        ];
    }
}
